package com.ytf.core.common;

import cn.hutool.cache.impl.TimedCache;
import com.ytf.core.constants.UserAndRoleAndPermissionConstants;
import com.ytf.core.web.pojo.vo.UserVo;

/**
 * @author YTF
 * @className UserInfoMemoryCache
 * @date 2025/5/28 20:03
 * @description
 */
public class UserMemoryCache extends AbstractMemoryCacheOperator<UserVo> {

    public UserMemoryCache(TimedCache<String, UserVo> timedCache) {
        super(timedCache);
    }

    @Override
    public String getCommonKeyPrefix() {
        return UserAndRoleAndPermissionConstants.USER_CACHE_PREFIX;
    }

}